body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f7f9fc;
}

header {
    background-color: #4CAF50;
    color: white;
    padding: 20px;
    text-align: center;
}

.container {
    width: 80%;
    margin: 20px auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.product {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
    margin: 15px;
    padding: 20px;
    width: calc(30% - 40px); /* 使每行显示3个商品，考虑间距 */
    transition: transform 0.3s;
}

.product:hover {
    transform: scale(1.05); /* 鼠标悬停时放大效果 */
}

.product img {
    max-width: 100%;
    border-radius: 8px;
}

.product h3 {
    margin: 10px 0;
    font-size: 1.5em;
}

.product p {
    color: #555;
    font-size: 1em;
    margin: 10px 0;
}

.product .price {
    font-size: 1.2em;
    color: #4CAF50;
    font-weight: bold;
}
